package com.woniu.zsd.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("chat_history")
@ApiModel(value="聊天记录对象", description="")
public class ChatHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "聊天记录 ID")
    @TableId(value = "chat_history_id", type = IdType.AUTO)
    private Integer chatHistoryId;

    @ApiModelProperty(value = "用户 ID")
    private Integer userId;

    @ApiModelProperty(value = "负责人 ID")
    private Integer directorId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "聊天内容")
    private String chatContent;

    @ApiModelProperty(value = "1.用户2.负责人")
    private Integer role;

    @ApiModelProperty(value = "删除")
    private Integer is_delete;

    @ApiModelProperty(value = "父 ID")
    private Integer parentId;
}
